﻿@model HCQ2_Model.T_PageFolder
@{
    ViewBag.Title = @HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuTitle");
}
@section headerSection{
<link href="~/Resources/mainFrame/css/plugins/gtreetable/default/jquery.treeTable.css" rel="stylesheet" />
<link href="~/Resources/mainFrame/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet" />
    <style>
        .dropdown-menu label{
            padding:10px 10px 5px 15px;
            cursor:pointer;
        }
    </style>
}
<div class="animated fadeInRight">
    <div class="col-xl-12">
        <div class="ibox">
            <div class="ibox-title" style="height:50px;">
                <h5><i class="fa fa-qrcode"></i>&nbsp;@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuListTitle")</h5>
                <div class="btn-group hidden-xs" role="group" style="margin-left:10px;margin-top:-7px;">
                    <div class="form-group" style="display:inline-block; width:200px;">
                        <select id="smCode" name="smCode" class="form-control show-tick selectpicker" placeholder=@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseSelect")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuModule")></select>
                    </div>
                    <div class="form-group" style="display:inline-block;">
                        <button id="btnSearch" class="btn btn-primary" type="button"><i class="fa fa-search"></i>&nbsp;@HCQ2_Common.LangHelper.GetValue("GeneralJson.Query")</button>
                    </div>
                </div>
            </div>
            <div id="treeContent" class="ibox-content" style="padding:0">
                <table id="treeTable" class="table table-striped table-bordered table-hover table-condensed" style="font-size: 13px"></table>
            </div>
        </div>
    </div>
</div>
<!--添加,编辑-->
<div id="menuForm" style="width: 460px; overflow: hidden; display: none;">
    <form class="form-horizontal m-t" id="menuFormTable" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuName")<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-7">
                <input id="folder_name" name="folder_name" type="text" class="form-control input-sm" placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseImport")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuName")"  required="" aria-required="true"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuEnName")：</label>
            <div class="col-sm-7">
                <input id="enLang" name="enLang" type="text" class="form-control input-sm" placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseImport")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuEnName")" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuType")<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-7">
                <select id="folder_type" name="folder_type" class="form-control show-tick selectpicker" placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseSelect")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuType")">
                    <option value="page" selected>@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuThisPage")</option>
                    <option value="childPage">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuChildPage")</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuModule")<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-7">
                <select id=sm_code name="sm_code" class="selectpicker show-tick bs-select-hidden" data-size="6" data-live-search="false" required="" aria-required="true" placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseSelect")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuModule")"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuUrl")：</label>
            <div class="col-sm-7">
                <input id="folder_url" name="folder_url" type="text" class="form-control input-sm" placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseImport") @HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuUrl")" <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> @HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuEg")：Controller/Action</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuIcon")：</label>
            <div class="col-sm-7">
                <input type="hidden" id="folder_image" value="fa-adjust" name="folder_image"/>
                <a href="#"><i id="iconSelect" class="fa fa-adjust"></i></a>
                <button id="btnSetIcon" type="button" class="btn btn-outline btn-danger">
                    <i class="glyphicon glyphicon-trash" aria-hidden="true">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.setIcon")</i>
                </button>
            </div>
        </div>
        <div id="file-pretty" class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuPicture")：</label>
            <div class="col-sm-7">
                <input type="file" id="module_img" name="module_img" class="form-control">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.belongTo")：</label>
            <div class="col-sm-7">
                <select id="module_type" name="module_type" class="selectpicker show-tick bs-select-hidden" data-size="6" data-live-search="false"  placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseSelect")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.belongTo")"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.menuFlow")：</label>
            <div class="col-sm-7">
                <div class="checkbox checkbox-success checkbox-inline">
                    <input type="checkbox" id="is_Bus_img" name="is_Bus_img" value="option1">
                    <label for="is_Bus_img"> @HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.whetherFlow")</label>
                </div>
                <input type="hidden" id="is_Bus" name="is_Bus" value="" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.serviceCode")：</label>
            <div class="col-sm-7">
                <input id="Bus_Code" name="Bus_Code" type="text" class="form-control input-sm" placeholder="@HCQ2_Common.LangHelper.GetValue("GeneralJson.pleaseImport")@HCQ2_Common.LangHelper.GetValue("PublicSystem.Menu.serviceCode")" />
            </div>
        </div>
    </form>
</div>
@section footSection{
    <script src="~/Resources/mainFrame/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
    <script src="~/Resources/mainFrame/js/plugins/gtreetable/jquery.treeTable.js"></script>
    <script src="~/Resources/myScript/SysAdmin/menuManager.js"></script>
    <script>
        $(function () {
            $('#file-pretty input[type="file"]').prettyFile();
            menuManager.initSelect();
            menuManager.bindEvent();
            menuManager.initTreeTable();
            menuManager.bandEvent();
        });
    </script>
}
